package com.zsrt.java.day20161230.lh.day.demo04;

/**
 * 父类
 * @author My
 *
 */
public class Person04 {
	
	public String jiapu;
	
	private String name;
	private int age=33;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public int add(int x,int y){
		return x+y;
	} 
	
	
	
	@Override
	public String toString() {
		return "Person04 [name=" + name + ", age=" + age + "]";
	}
	

}
